userdbctl: drop redundant user name validity check
authorLennart Poettering <lennart@poettering.net>
Fri, 3 Apr 2020 20:27:09 +0000 (22:27 +0200)
committerMichael Biebl <biebl@debian.org>
Fri, 10 Apr 2020 09:55:15 +0000 (10:55 +0100)
commitf953a7c937c0640b8269c2b8134dd4a4261373a0
tree93e8a88e582d9096ead32a4da7afdff3ea6df671
parent3545e51202e2ab927cfe69040d7145b861ac39e1
userdbctl: drop redundant user name validity check

The userdb_by_name() invocation immediately following does the same check
anyway, no need to do this twice.

(Also, make sure we exit the function early on failure)

(cherry picked from commit 2aea5883f1d016ec7304acdb59516c30cae92452)

Gbp-Pq: Name userdbctl-drop-redundant-user-name-validity-check.patch
src/userdb/userdbctl.c